package com.xintonghua.bussiness.ui.user.amount;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.xintonghua.bussiness.R;
import com.xintonghua.bussiness.base.BaseActivity;
import com.xintonghua.bussiness.event.BankEventBus;

import org.greenrobot.eventbus.EventBus;
import org.greenrobot.eventbus.Subscribe;
import org.greenrobot.eventbus.ThreadMode;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * 作者：wanxianyi
 * 时间：2018/4/1.
 * 包名：com.xintonghua.bussiness.ui.user.amount
 */

public class BankListActivity extends BaseActivity {


    @BindView(R.id.tv_alipay)
    TextView tvAlipay;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_bank_list);
        ButterKnife.bind(this);
        EventBus.getDefault().register(this);
        onSimpleActionBar();
        setSimpleActionBar("账户");

    }

    @OnClick(R.id.tv_alipay)
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.tv_alipay:
                openActivity(AddBankActivity.class);
                break;
        }
    }

    @Subscribe(threadMode = ThreadMode.MAIN)
    public void onEvent(BankEventBus bankEventBus) {
        finish();
    }
}
